package org.test.vo;

public class ShoppingCart {

    private int cartid;
    private int id;
    private int bookid;
    private String bookname;
    private int booknum;

    public ShoppingCart() {
    }

    public ShoppingCart(int cartid, int id, int bookid, String bookname, int booknum) {
        this.cartid = cartid;
        this.id = id;
        this.bookid = bookid;
        this.bookname = bookname;
        this.booknum = booknum;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "cartid=" + cartid +
                ", id=" + id +
                ", bookid=" + bookid +
                ", bookname='" + bookname + '\'' +
                ", booknum=" + booknum +
                '}';
    }

    public int getCartid() {
        return cartid;
    }

    public void setCartid(int cartid) {
        this.cartid = cartid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBookid() {
        return bookid;
    }

    public void setBookid(int bookid) {
        this.bookid = bookid;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public int getBooknum() {
        return booknum;
    }

    public void setBooknum(int booknum) {
        this.booknum = booknum;
    }
}
